#define _CRT_SECURE_NO_WARNINGS
#include <stdio.h>
int main()
{
	int a = 0;
	int arr[4] = { 0 };
	scanf("%d%d%d%d", &arr[0], &arr[1], &arr[2], &arr[3]);
	int max = arr[0];
	for (a = 0; a < 4; a++)
	{
		if (max < arr[a])
		{
			max = arr[a];
		}
	}
	printf("max=%d", max);




	return 0;
}